/*
package com.jiazhong.spring.ai.ollama.controller;

import jakarta.annotation.Resource;
import org.springframework.ai.ollama.OllamaChatModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Flux;
@RestController
@RequestMapping("/ollama/ai/model")
public class OllamaChatModelController {
    @Resource
    private OllamaChatModel ollamaChatModel;

    @GetMapping("/sync")
    public String sync(@RequestParam("message") String message) {
        return ollamaChatModel.call(message);
    }

    @GetMapping(value = "/stream",produces = "text/html;charset=utf-8")
    public Flux<String> stream(@RequestParam("message") String message) {
        return ollamaChatModel.stream(message);
    }

}
*/
